package user

import (
	"github.com/gin-gonic/gin"
	"new_club_recruitment/api"
)

type UserRouter struct {
}

func (u *UserRouter) InitUserRouter(Router *gin.RouterGroup) {
	//创建路由组
	userRouter := Router.Group("api/v1")
	userApi := api.ApiGroupApp.UserApiGroup
	{
		userRouter.POST("/user", userApi.AddUsers)
		userRouter.GET("/user", userApi.GetUsers)
		userRouter.PUT("/user", userApi.UpdateUser)
		userRouter.GET("/user/:id", userApi.GetExaUser)
	}
}
